Carbon\Carbon D

Total Complexity 351
Dependencies 10
Dependents 10
Total lines 3,318
Lines of code 1,003
Logical lines of code 481
Comment lines 1,679
Methods 221
Properties 11

Methods 221

Method Rating Maintainability Complexity Lines of code
diffForHumans()
B
41 21 51
__get()
A
43 14 42
create()
A
47 13 35
__set()
A
52 10 23
createSafe()
A
53 8 20
__construct()
S
58 8 15
safeCreateDateTimeZone()
S
55 6 20
diffFiltered()
S
57 5 16
between()
S
63 5 11
setLocale()
S
58 4 14
nextOrPreviousDay()
S
67 4 7
hasRelativeKeywords()
S
64 4 10
createFromFormat()
S
60 3 12
max()
S
74 3 4
setTimeFromTimeString()
S
67 3 7
formatLocalized()
S
66 3 7
min()
S
74 3 4
diffInSeconds()
S
71 3 5
nthOfQuarter()
S
66 3 7
startOfWeek()
S
71 2 6
lastOfMonth()
S
67 2 7
translator()
S
65 2 9
modify()
S
65 2 10
average()
S
73 2 4
nthOfYear()
S
73 2 4
closest()
S
78 2 3
farthest()
S
79 2 3
nthOfMonth()
S
68 2 6
isSameMonth()
S
74 2 4
endOfWeek()
S
71 2 6
addMonths()
S
71 2 6
addMonthsNoOverflow()
S
67 2 8
diffInYears()
S
74 2 4
firstOfMonth()
S
67 2 7
diffInMonths()
S
73 2 4
previous()
S
70 2 6
diffInDays()
S
74 2 4
next()
S
70 2 6
setTestNow()
S
78 2 3
fromSerialized()
S
68 2 7
isSameAs()
S
74 2 4
__isset()
S
68 2 8
minValue()
S
70 2 6
instance()
S
70 2 6
maxValue()
S
69 2 6
setWeekStartsAt()
S
80 1 3
subHours()
S
79 1 3
addWeek()
S
80 1 3
subWeek()
S
80 1 3
subWeeks()
S
79 1 3
addHours()
S
79 1 3
addHour()
S
80 1 3
subHour()
S
80 1 3
addMinute()
S
80 1 3
addMinutes()
S
79 1 3
subWeekdays()
S
79 1 3
subMinute()
S
80 1 3
subMinutes()
S
79 1 3
addSeconds()
S
79 1 3
addSecond()
S
80 1 3
subSecond()
S
80 1 3
subSeconds()
S
79 1 3
year()
S
77 1 4
addWeeks()
S
79 1 3
addWeekdays()
S
72 1 5
subWeekday()
S
80 1 3
subMonthsWithOverflow()
S
79 1 3
subCenturies()
S
79 1 3
day()
S
77 1 4
addMonth()
S
80 1 3
subMonth()
S
80 1 3
subMonths()
S
79 1 3
addMonthsWithOverflow()
S
79 1 3
addMonthWithOverflow()
S
80 1 3
subMonthWithOverflow()
S
80 1 3
month()
S
77 1 4
addWeekday()
S
80 1 3
addMonthNoOverflow()
S
80 1 3
subMonthNoOverflow()
S
80 1 3
subMonthsNoOverflow()
S
79 1 3
addDays()
S
79 1 3
addDay()
S
80 1 3
subDay()
S
80 1 3
subDays()
S
79 1 3
copy()
S
81 1 3
diffInWeeks()
S
78 1 3
createFromTimestampUTC()
S
79 1 3
diffInDaysFiltered()
S
78 1 3
today()
S
79 1 3
createFromTime()
S
77 1 3
createFromDate()
S
77 1 3
nextWeekday()
S
81 1 3
previousWeekday()
S
79 1 3
nextWeekendDay()
S
80 1 3
previousWeekendDay()
S
80 1 3
yesterday()
S
79 1 3
tomorrow()
S
79 1 3
firstOfQuarter()
S
77 1 3
endOfCentury()
S
73 1 4
lastOfQuarter()
S
78 1 3
now()
S
79 1 3
firstOfYear()
S
80 1 3
lastOfYear()
S
80 1 3
parse()
S
79 1 3
isBirthday()
S
79 1 3
shouldOverflowMonths()
S
81 1 3
serialize()
S
80 1 3
setLastErrors()
S
80 1 3
startOfCentury()
S
74 1 4
diffInHoursFiltered()
S
78 1 3
getLastErrors()
S
81 1 3
addCentury()
S
80 1 3
diffInWeekdays()
S
73 1 5
diffInWeekendDays()
S
73 1 5
diffInHours()
S
78 1 3
diffInMinutes()
S
78 1 3
createFromTimestamp()
S
79 1 3
secondsSinceMidnight()
S
80 1 3
secondsUntilEndOfDay()
S
80 1 3
startOfDay()
S
79 1 3
endOfDecade()
S
73 1 4
endOfDay()
S
79 1 3
startOfMonth()
S
78 1 3
endOfMonth()
S
78 1 3
startOfQuarter()
S
73 1 4
endOfQuarter()
S
79 1 3
startOfYear()
S
78 1 3
endOfYear()
S
78 1 3
startOfDecade()
S
74 1 4
subCentury()
S
80 1 3
addCenturies()
S
79 1 3
getWeekEndsAt()
S
81 1 3
toRssString()
S
80 1 3
toCookieString()
S
80 1 3
toIso8601String()
S
81 1 3
toRfc822String()
S
80 1 3
toRfc850String()
S
80 1 3
toRfc1036String()
S
80 1 3
toRfc1123String()
S
80 1 3
toRfc2822String()
S
80 1 3
toRfc3339String()
S
80 1 3
toW3cString()
S
80 1 3
toDayDateTimeString()
S
80 1 3
eq()
S
80 1 3
equalTo()
S
80 1 3
ne()
S
80 1 3
notEqualTo()
S
80 1 3
gt()
S
81 1 3
greaterThan()
S
80 1 3
gte()
S
80 1 3
greaterThanOrEqualTo()
S
80 1 3
toAtomString()
S
80 1 3
toDateTimeString()
S
80 1 3
lessThan()
S
80 1 3
getTranslator()
S
80 1 3
setWeekEndsAt()
S
80 1 3
getWeekendDays()
S
81 1 3
setWeekendDays()
S
80 1 3
getWeekStartsAt()
S
81 1 3
getTestNow()
S
81 1 3
hasTestNow()
S
79 1 3
getDays()
S
81 1 3
setTimezone()
S
79 1 3
setTranslator()
S
80 1 3
toTimeString()
S
80 1 3
getLocale()
S
80 1 3
tz()
S
80 1 3
setUtf8()
S
80 1 3
timezone()
S
80 1 3
resetToStringFormat()
S
81 1 3
setToStringFormat()
S
80 1 3
__toString()
S
80 1 3
toDateString()
S
80 1 3
toFormattedDateString()
S
80 1 3
lt()
S
80 1 3
lte()
S
80 1 3
subQuarters()
S
79 1 3
isWednesday()
S
80 1 3
isCurrentYear()
S
81 1 3
isSameYear()
S
79 1 3
isCurrentMonth()
S
81 1 3
hour()
S
77 1 4
isSameDay()
S
80 1 3
isSunday()
S
80 1 3
isMonday()
S
80 1 3
isTuesday()
S
80 1 3
isThursday()
S
80 1 3
isLongYear()
S
77 1 3
isFriday()
S
80 1 3
isSaturday()
S
80 1 3
addYears()
S
79 1 3
addYear()
S
80 1 3
subYear()
S
80 1 3
subYears()
S
79 1 3
addQuarters()
S
79 1 3
addQuarter()
S
80 1 3
subQuarter()
S
80 1 3
resetMonthsOverflow()
S
80 1 3
isLeapYear()
S
79 1 3
lessThanOrEqualTo()
S
80 1 3
isWeekend()
S
79 1 3
timestamp()
S
80 1 3
setDateTime()
S
77 1 3
setDate()
S
75 1 4
second()
S
77 1 4
minimum()
S
80 1 3
minute()
S
77 1 4
maximum()
S
80 1 3
isWeekday()
S
80 1 3
isYesterday()
S
79 1 3
isPast()
S
79 1 3
isToday()
S
79 1 3
isTomorrow()
S
79 1 3
isNextWeek()
S
79 1 3
isLastWeek()
S
79 1 3
isNextMonth()
S
79 1 3
isLastMonth()
S
79 1 3
isNextYear()
S
79 1 3
isLastYear()
S
79 1 3
isFuture()
S
79 1 3
useMonthsOverflow()
S
80 1 3